package com.qiqidream.admin.tools.model.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.qiqidream.admin.common.base.BaseEntity;
import lombok.*;

/**
 * 系统设置表
 * @author QiQiDream
 * @since 2019/12/30 19:42
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(autoResultMap = true,value = "sys_setting")
public class SysSetting extends BaseEntity {
    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 是否启用
     */
    @TableField(value = "is_enabled")
    private Boolean enabled;

    /**
     * 配置属性
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject config;
}
